package com.ym.b2b.type.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ym.b2b.commons.controller.BaseController;
import com.ym.b2b.type.service.EmBTypeService;
import com.ym.b2b.type.sqlbean.EmBType;

@Controller
@RequestMapping("/type")
public class ManagerBTypeController extends BaseController {

    @Autowired
    private EmBTypeService emBTypeService;

    // 获取记录内容
    @RequestMapping("searchAllEmBType.do")
    @ResponseBody
    public List searchAllEmBType(EmBType emBType, HttpServletRequest req) {
        List result = new ArrayList();
        result = emBTypeService.searchAllEmBType();
        return result;
    }
}